package dtdl;

public class Client {

    public static void main(String[] args) {
//        System.out.println("**********************CGLibProxy**********************");
//        CGLibProxy cgLibProxy = new CGLibProxy();
//        IUserManager userManager = (IUserManager) cgLibProxy.createProxyObject(new UserManagerImpl());
//        userManager.addUser("lanhuigu", "123456");


        System.out.println("**********************JDKProxy**********************");
        JDKProxy jdkPrpxy = new JDKProxy();
        IUserManager userManagerJDK = (IUserManager) jdkPrpxy.newProxy(new UserManagerImpl());
        userManagerJDK.addUser("lanhuigu", "123456");


    }
}
